import router from '@system.router'

export default {
    data: {
        username: "",
        password: "",
        confirmPassword: ""
    },

    onclick: function () {
        let timer;

        setTimeout(() => {
            this.username = "user";
            this.password = "12345678";
            this.confirmPassword = "12345678";
            timer = setTimeout( () => {
                this.$app.$def.globalMethod("注册成功！");
                router.replace({
                    uri: "pages/login/login"
                })
            }, 1500 );
        }, 4000);

    },

    home: function(){
        router.replace({
            uri: "pages/index/index"
        })
    },
}
